SELECT
<#switch (select__object__id!)>
	<#case "id">
T.ID AS id
	<#break>
	<#case "endDaTi">
T.END_DA_TI AS endDaTi
	<#break>
	<#case "parentId">
T.PARENT_ID AS parentId
	<#break>
	<#case "name">
T.NAME AS name
	<#break>
	<#case "orderNum">
T.ORDER_NUM AS orderNum
	<#break>
	<#case "beginDaTi">
T.BEGIN_DA_TI AS beginDaTi
	<#break>
	<#case "code">
T.CODE AS code
	<#break>
	<#default>
COUNT(1) AS COUNT_
</#switch>
FROM FD_ROLE T
<#include "whereRoleBy1.ftl">